$def with(posts, date)
<!--?xml version="1.0"?-->
<rss version="2.0">
   <channel>
      <title>$globals.get('website_title')</title>
      <link>$globals.get('website_url')</link>
      <description>$globals.get('website_subtitle')</description>
      <language>zh-CN</language>
      <pubdate>$date</pubdate>

      <lastbuilddate>$date</lastbuilddate>
      <generator>$globals.get('website_url')</generator>

      $for post in posts:
         <item>
            <title>$post.title</title>
            <link>$globals.get('website_url')/post/$post.id</link>
            <description>
               <![CDATA[$:markdown(post.content)]]>
            </description>
            <pubdate>$post.created</pubdate>
         </item>
    </channel>
</rss>